ga.core.evaluation
Interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>

Type Parameters:
T - The generic type of the individuals.
All Superinterfaces:
IFitnessEvaluator<T>
All Known Implementing Classes:
AbstractInteractiveEvaluator, AerialEvaluationState, BillardEvaluationState, StreamingEvaluationState

public interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>
extends IFitnessEvaluator<T>

Interface for interactive fitness evaluators.

Since:
11.08.2012
Author:
Stephan Dreyer

Method Summary
 void addEvaluationListener(EvaluationListener<T> listener)
          Adds an EvaluationListener that will be notified about the evaluation state.
 void evaluate(T individual)
          Evaluates the given individual.
 void fireIndividualEvaluated(T individual)
          Notification method that causes all EvaluationListeners being notified that the evaluator has evaluated the individual.
 void fireNewIndividualRequested()
          Notification method that causes all EvaluationListeners being notified that the evaluator demands a new individual for evaluation.
 ISIGA<T> getAlgorithm()
          Getter for the interactive genetic algorithm.
 void removeEvaluationListener(EvaluationListener<T> listener)
          Adds an EvaluationListener.
 void setAlgorithm(ISIGA<T> algorithm)
          Sets the interactive genetic algorithm.
 

Method Detail

evaluate

void evaluate(T individual)
Description copied from interface: IFitnessEvaluator
Evaluates the given individual.

Specified by:
evaluate in interface IFitnessEvaluator<T extends IIndividual<T>>
Parameters:
individual - Individual to evaluate.

addEvaluationListener

void addEvaluationListener(EvaluationListener<T> listener)
Adds an EvaluationListener that will be notified about the evaluation state.

Parameters:
listener - The listener.
Since:
11.08.2012

removeEvaluationListener

void removeEvaluationListener(EvaluationListener<T> listener)
Adds an EvaluationListener.

Parameters:
listener - The listener.
Since:
11.08.2012

fireNewIndividualRequested

void fireNewIndividualRequested()
Notification method that causes all EvaluationListeners being notified that the evaluator demands a new individual for evaluation.

Since:
11.08.2012

fireIndividualEvaluated

void fireIndividualEvaluated(T individual)
Notification method that causes all EvaluationListeners being notified that the evaluator has evaluated the individual.

Parameters:
individual - The evaluated individual.
Since:
11.08.2012

setAlgorithm

void setAlgorithm(ISIGA<T> algorithm)
Sets the interactive genetic algorithm.

Parameters:
algorithm - The SIGA.
Since:
11.08.2012

getAlgorithm

ISIGA<T> getAlgorithm()
Getter for the interactive genetic algorithm.

Returns:
The SIGA.
Since:
11.08.2012